<?php

/**
 * 页面管理
 */
Route::get('application/pages', ['as'=> 'application.pages.index', 'uses' => 'Application\PageController@index']);
Route::post('application/pages', ['as'=> 'application.pages.store', 'uses' => 'Application\PageController@store']);
Route::get('application/pages/create', ['as'=> 'application.pages.create', 'uses' => 'Application\PageController@create']);
Route::put('application/pages/{pages}', ['as'=> 'application.pages.update', 'uses' => 'Application\PageController@update']);
Route::patch('application/pages/{pages}', ['as'=> 'application.pages.update', 'uses' => 'Application\PageController@update']);
Route::delete('application/pages/{pages}', ['as'=> 'application.pages.destroy', 'uses' => 'Application\PageController@destroy']);
Route::get('application/pages/{pages}', ['as'=> 'application.pages.show', 'uses' => 'Application\PageController@show']);
Route::get('application/pages/{pages}/edit', ['as'=> 'application.pages.edit', 'uses' => 'Application\PageController@edit']);


/**
 * 应用添加, 编辑, 删除文件信息
 */
// 列表
Route::get('application/pages/application/{application_id}', ['as'=> 'application.pages.application.index', 'uses' => 'Application\PageController@applicationIndex']);
// 保存
Route::post('application/pages/application/{application_id}', ['as'=> 'application.pages.application.store', 'uses' => 'Application\PageController@applicationStore']);
// 新增视图
Route::get('application/pages/application/{application_id}/create', ['as'=> 'application.pages.application.create', 'uses' => 'Application\PageController@applicationCreate']);
// 更新 application/pages/application/1/2
Route::put('application/pages/application/{application_id}/{pages}', ['as'=> 'application.pages.application.update', 'uses' => 'Application\PageController@applicationUpdate']);
Route::patch('application/pages/application/{application_id}/{pages}', ['as'=> 'application.pages.application.update', 'uses' => 'Application\PageController@applicationUpdate']);
// 删除
Route::delete('application/pages/application/{application_id}/{pages}', ['as'=> 'application.pages.application.destroy', 'uses' => 'Application\PageController@applicationDestroy']);
// 编辑视图
Route::get('application/pages/application/{application_id}/{pages}/edit', ['as'=> 'application.pages.application.edit', 'uses' => 'Application\PageController@applicationEdit']);

